/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

/**
 *
 * @author C
 */
import beans.AfiliadoBean;
import daos.Dao;
import daos.DaoFactory;


public class MathClient {

   private String endpointAddress;

   public static void main(String argv[]) throws Exception {
  
        Dao dao = DaoFactory.getDao("Afiliado");
       AfiliadoBean af= new AfiliadoBean(1);
       af = (AfiliadoBean) dao.get(af);
       
       System.out.println(af.getApellido());
   }

}

